<?php
/* 
 * ebiz front
 * 
 * Marketing Service
 * 
 * @author allen
 * 
 */

require_once '../app/core/services/BaseService.php';
require_once '../app/models/MarketingDao.php';

class MarketingService extends BaseService 
{
        
	private $marketingDao;
	
	public function __construct(){
		parent::__construct();
		$this->marketingDao = new MarketingDao($this->dbUtil);
	}
	
    public function isValidity($key){ 
        $url = $this->marketingDao->getByKey($key);
        if($url){
            return $url[0]['mapping_value'];
        }else{
        	return null;
        }
    }

}






